//提交订单
function addOrderApi(data) {
    const Authorization = localStorage.getItem('Authorization')

    return $axios({
        'url': 'http://localhost:18080/order/order/submit',
        'method': 'post',
        headers: {
            'Authorization': `${Authorization}`
        },
        data
    })
}

//查询所有订单
function orderListApi() {
    return $axios({
        'url': 'http://localhost:18080/order/order/list',
        'method': 'get',
    })
}

//分页查询订单
function orderPagingApi(data) {
    return $axios({
        'url': 'http://localhost:18080/order/order/userPage',
        'method': 'get',
        params: {...data}
    })
}

//再来一单
function orderAgainApi(data) {
    const Authorization = localStorage.getItem('Authorization')
    return $axios({
        'url': 'http://localhost:18080/order/order/again',
        'method': 'post',
        headers: {
            'Authorization': `${Authorization}`
        },
        data
    })
}